dnd: Guard drags with a reference when finishing
authorBenjamin Otte <otte@redhat.com>
Mon, 26 Jul 2021 00:16:47 +0000 (02:16 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 26 Jul 2021 00:18:54 +0000 (02:18 +0200)
commitf5dc71021fc3adc0c13e7ab8b3f9e78e434bacdb
treeb6d09de7e15739eda288df6093c0c01aab5889ce
parent620ccdabb5c4be2d49ba47705d44a895f6658085
dnd: Guard drags with a reference when finishing

Usually the "dnd-finished" signal will be used to unref the GdkDrag. In
those cases, we would lose the object, so that when we do the final
drag_drop_done() afterwards, we wouldn't have a remaining reference.

With the reference guard, this now works.
gdk/macos/gdkmacosdrag.c
gdk/wayland/gdkdrag-wayland.c
gdk/x11/gdkdrag-x11.c